package com.lingjtx.common.api.feign;

import com.lingjtx.common.core.constant.ServiceName;
import com.lingjtx.common.core.model.api.OssUploadResponseItem;
import com.lingjtx.common.core.model.api.OssUploadStream;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(name = ServiceName.OSS)
public interface RemoteOSSClient {

    @PostMapping("/pri/upload/single/stream")
    OssUploadResponseItem singleUpload(@RequestBody OssUploadStream model);
}
